lib/checkout: Move special case for subpath of file to toplevel
authorColin Walters <walters@verbum.org>
Thu, 11 May 2017 01:43:26 +0000 (21:43 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 11 May 2017 14:15:54 +0000 (14:15 +0000)
commit7896bcbe6595e4dd076a06a024d058193fa0f09c
tree8f720a50b12dc0fb803aa21c3b2e33932818a80c
parent986e05e3fd59abc6f837cc9a6282e75b9596ad76
lib/checkout: Move special case for subpath of file to toplevel

Since we now have a cleaner separation of "toplevel checkout prep"
versus "recursive checkout", handle the special case of checking out
a single file at first rather than later.

Prep for future work in optimizing this function more.

Closes: #848
Approved by: jlebon
src/libostree/ostree-repo-checkout.c